'use strict';

import { loginlogModel } from "../model/loginlog";
import { ServiceBase } from '../kalend';
import * as underscore from 'underscore';

class LonginLogService extends ServiceBase {

    constructor() {
        super(loginlogModel)
    }

    query(offset: number, limit: number) {
        return this.queryPagination(offset, limit, { sort: { createTime: -1 } });
    }

    queryPage(offset: number, limit: number, options: any) {
        return this.queryPagination(offset, limit, options)
    }

    async createlog(body: any) {
        var result = await this.create(body);
        return result
    }


}

export const longinlogService = new LonginLogService();